<?php $id="form_".uniqid();?>
<table id="<?php echo $id;?>"></table>
<script>
$("#<?php echo $id;?>").DataSource({url:'order/getlist',
	fields:[[
		{field:'id',      title:'ID',  align:'center', width:70,sortable:true},
		{field:'xz',      title:'下注/结算 ',align:'center', width:160, sortable:false},
		{field:'kithe',   title:'期数 ', align:'center',width:100, sortable:true},	
		{field:'upline',  title:'所属上线', align:'center',width:100, sortable:true},
		{field:'order_sn',title:'注单号', align:'center', width:200,  sortable:true},	
		{field:'username',title:'帐号', align:'center', width:100,  sortable:true},	
		{field:'type',    title:'类型', align:'center', width:120,  sortable:true},	
		{field:'content', title:'内容', align:'center', width:150,  sortable:true},
		{field:'money',   title:'下注金额', align:'center', width:70,  sortable:true},	
		{field:'rebate',  title:'返水', align:'center', width:100,  sortable:true},	
		{field:'lucky_price',title:'可赢金额', align:'center',width:100,  sortable:true},	
		{field:'result',  title:'结果', align:'center', width:50,  sortable:true},	
		{field:'pc',      title:'派彩', align:'center', width:60,  sortable:true}
		
    ]], tools:[
		{instant:false},
		<?php if(in_array('EDIT',$auth)){?>
		{text:"编辑",iconCls:"icon-edit",handler:function(){
			$('#<?php echo $id?>').DataSource('edit',{title:'查看',get:'order/edit?type=<?php echo $type?>',full:false});
		}},
		<?php }?>
		{type:'combobox',text:'类型',width:100,name:'verify_status',value:'', items:'<option value="">所有彩种</option><option value="1">PC蛋蛋</option>'},
		{type:'combobox',text:'状态',width:100,name:'verify_status',value:'', items:'<option value="">全部</option><option value="1">已结算</option><option value="1">未结算</option>'},
		{type:'textbox', text:'帐号', width:100,name:'username'},
		{type:'textbox', text:'注单号', width:100,name:'username'},
		{type:'datebox', text:'日期', width:100,name:'qaddtime'},
		{type:'datebox', text:'-', width:100,name:'zaddtime'},
		{type:'combobox',text:'来源',width:100,name:'verify_status',value:'', items:'<option value="">全部</option><option value="1">PC端</option><option value="1">WAP端</option>'},
		{type:'combobox',text:'排序',width:100,name:'sort',value:'', items:'<option value="">注单时间</option><option value="1">下注金额</option>'},
		{type:'combobox',text:'-',width:100,name:'sort_type',value:'', items:'<option value="">降序</option><option value="1">升序</option>'},
		{text:"搜索", iconCls:"icon-search", handler:function(){
			$('#<?php echo $id?>').DataSource('search');
		}},
	'-'
	],
	footer:true,
	success:function(){

	}
});
</script>